package com.freemalll.merchant.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.freemalll.merchant.domain.dto.merchantParameters.ParamsLogDTO;
import com.freemalll.merchant.domain.entity.merchantParameters.MerParamsLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 *  映射层。
 *
 * @author jianglr
 * @since 2025-03-10
 */
@Mapper
public interface MerParamsLogMapper extends BaseMapper<MerParamsLog> {

    @Select(" select id,param_id,log_type,content,file_name,add_time,add_emp_id as addManId,add_emp_name as addManName from mer_params_log where delete_flag = 0 and param_id = #{id} order by add_time desc ")
    List<ParamsLogDTO> selectListByParentId(@Param("id") String id);
}
